import * as actions from '../actions/component.js'

const initState = {
	data:[],
	total:0
}
export default function todoMVC(state=initState,action){
  switch (action.type) {
    case actions.INIT_LIST:
		const lab = state.data;
		lab[action.data_id]=action.data;
		return Object.assign({}, state, {
			data:lab,
			total:action.total
		});
      break;
	case actions.INIT_SHOP_TITLE_DATA:
		return Object.assign({}, state, {
			
		});
	break;
    default:
      return state;
  }
}
